//
//  ZFK_tagCollectionViewCell.m
//  Drops
//
//  Created by SHG on 16/5/24.
//  Copyright © 2016年 Drops.er. All rights reserved.
//

#import "ZFK_tagCollectionViewCell.h"

@implementation ZFK_tagCollectionViewCell

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    
    UIView *layerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.height / 7, [UIScreen mainScreen].bounds.size.height / 7)];
    layerView.backgroundColor = [UIColor blackColor];
    layerView.alpha = 0.1;
//    [self addSubview:layerView];
    
    self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.height / 7, [UIScreen mainScreen].bounds.size.height / 7)];
    self.imageView.backgroundColor = [UIColor lightGrayColor];
    self.imageView.contentMode = UIViewContentModeCenter;
    self.imageView.clipsToBounds = YES;
    [self addSubview:self.imageView];
    [self.imageView addSubview:layerView];
    
    self.tagLabel = [[UILabel alloc] init];
    self.tagLabel.frame = CGRectMake(0, 0, self.imageView.frame.size.width, self.imageView.frame.size.height / 2);
    self.tagLabel.center = self.imageView.center;
    self.tagLabel.textColor = [UIColor whiteColor];
    self.tagLabel.numberOfLines = 0;
    self.tagLabel.textAlignment = 1;
    self.tagLabel.font = [UIFont systemFontOfSize:16];
    [self addSubview:self.tagLabel];
}



@end
